package com.bcx.crm.java.java8;

import java.util.ArrayList;
import java.util.List;

public class Lambda1 {
    public static void main(String [] strings){
        Runnable noArguments=()->System.out.println("womenshi");
        noArguments.run();
        List<String> allArtist=new ArrayList<>();
        allArtist.add("中国");
        allArtist.add("英国");
        allArtist.add("美国");
        long count = allArtist.stream().filter(artist -> artist.equals("")).count();
        System.out.println(count);
    }
    private static boolean isFrom(Object o){
        return o!=null && !"".equals(o);
    }

}
